xen/arm: vgic-v3: Delay the initialization of the domain information
authorJulien Grall <julien.grall@arm.com>
Mon, 1 Oct 2018 16:42:26 +0000 (17:42 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Sat, 26 Jan 2019 01:09:18 +0000 (17:09 -0800)
commit015b00ff3581d5f83cbc0ea96ebdc3900f12053e
treef563f7e4718aa39d1cb5e2d06e78372a2e8db0f8
parent02fd1ee8ce00ca2a1b89bb17703d667209fc49fb
xen/arm: vgic-v3: Delay the initialization of the domain information

A follow-up patch will require to know the number of vCPUs when
initializating the vGICv3 domain structure. However this information is
not available at domain creation. This is only known once
XEN_DOMCTL_max_vpus is called for that domain.

In order to get the max vCPUs around, delay the domain part of the vGIC
v3 initialization until the first vCPU of the domain is initialized.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Acked-but-disliked-by: Stefano Stabellini <sstabellini@kernel.org>
(cherry picked from commit 703d9d5ec13a0f487e7415174ba54e0e3ca158db)
xen/arch/arm/vgic-v3.c